/**
* name 
*/
class Button extends GYSprite{
	public labelDisplay:GYText;
	constructor(){
		super();
		let s= this;
		s.labelDisplay = new GYText;
		s.labelDisplay.width = 100;
		s.labelDisplay.text = "按钮文本";
		s.labelDisplay.color = "#000000";
		s.labelDisplay.fontSize = 30;
		s.labelDisplay.align = "center";
		s.addChild(s.labelDisplay);		
	}
	public setWH(w:number,h:number):void
	{
		let s = this;
		s.width = w;
		s.height = h;
		s.labelDisplay.width = w;
		s.labelDisplay.y = h - s.labelDisplay.height >> 1;
	}
	public set label(val:string)
	{
		this.labelDisplay.text= val;
	}
	public get label():string
	{
		return this.labelDisplay.text;
	}
}
